package com.adcc.swingui.bean;

import java.util.ArrayList;
import java.util.List;

import com.adcc.swingui.demo.panel.AbsContentPanel;


/**
 * <p>
 * Title: CustomTreeNode
 * </p>
 * <p>
 * Description: 图层设置树，对象节点
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * 
 * @author jeff.zhao
 * @version 1.0.0
 */
public class ConfigLayersNode {
	/** 节点显示名 */
	private String name;
	/**
	 * 国际化名称
	 */
	private String i18nName;
	/** 内容面板 */
	private String panel;
	/** 子节点集合 */
	private List<ConfigLayersNode> subNodes;
	private AbsContentPanel conObj = null;

	public ConfigLayersNode(String name, String panel) {
		this.name = name;
		this.panel = panel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getI18nName() {
		return i18nName;
	}

	public void setI18nName(String i18nName) {
		this.i18nName = i18nName;
	}

	public String getPanel() {
		return panel;
	}

	public void setPanel(String panel) {
		this.panel = panel;
	}

	public List<ConfigLayersNode> getSubNodes() {
		return subNodes;
	}

	public void setSubNodes(List<ConfigLayersNode> subNodes) {
		this.subNodes = subNodes;
	}
	public void addSubNode(ConfigLayersNode subNode) {
		if (this.subNodes == null) {
			this.subNodes = new ArrayList<ConfigLayersNode>();
		}
		this.subNodes.add(subNode);
	}
	public AbsContentPanel getConObj() {
		return conObj;
	}

	public void setConObj(AbsContentPanel conObj) {
		this.conObj = conObj;
	}
	
}